package com.sntk.organauthomanager.domain.model;

import java.util.HashSet;
import java.util.List;

/**
 * @ClassName: AssignUserAffiliateService
 * @author: wgchao
 * @createTime: 2020/9/9 8:56 AM
 * @Description: 账户关联机构
 */
public class AssignUserAffiliateService {

    public UserAffiliate assignUserAffiliate(User user, List<AffiliateInfo> affiliateInfos){
        user.normalException();
        return new UserAffiliate(user.getUname(), new HashSet<>(affiliateInfos));
    }

}
